<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<HEAD>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>绩效考核  <{$smarty.const.WEB_NAME}></title>
	<link rel="stylesheet" type="text/css" href="./skin/default/style.css" />
	<script type="text/javascript" src="./skin/default/comm.js"></script> 
	<script type="text/javascript" src="./skin/default/calendar.js"></script>
</HEAD>

<BODY>
	<table>
		<tr>
			<th align="center"><{$year}>年<{$month}>月行政考核统计</th>
		</tr>
	</table>
	<table width="100%" border="1" cellspacing="0" bordercolor="#cfcfcd" cellpadding="0" class="tableList tip_bug">
		<tr>
			<td align="center">员工</td>
			<td align="center">迟到(次)</td>
			<td align="center">早退(次)</td>
			<td align="center">请假(天)</td>
			<td align="center">无故请假(天)</td>
			<td align="center">补休(天)</td>
			<td align="center">旷工(天)</td>
			<td align="center">加班(天)</td>
			<td align="center">工作报告(次)</td>
			<td align="center">提醒(次)</td>
			<td align="center">警告(次)</td>
			<td align="center">劳动(次)</td>
			<td align="center">未打卡(次)</td>
			<td align="center">违反出入登记(次)</td>
			<td align="center">出差(天)</td>
			<td align="center">节省资源(次)</td>
			<td align="center">特殊贡献(次)</td>
			<td align="center">总得分</td>
			<td align="center">等级</td>
		</tr>
		<{section name=i loop=$list}>
		<tr>
			<td align="center"><{$list[i].name}></td>
			<td align="center">
				<{if $list[i].overDue > 0}>
				<{$list[i].overDue}>
				<{/if}>
			</td>
			<td align="center">
				<{if $list[i].earlyLeave > 0}>
				<{$list[i].earlyLeave}>
				<{/if}>
			</td>
			<td align="center">
				<{if $list[i].normalLeave > 0}>
				<{$list[i].normalLeave}>
				<{/if}>
			</td>
			<td align="center">
				<{if $list[i].abnormalLeave > 0}>
				<{$list[i].abnormalLeave}>
				<{/if}>
			</td>
			<td align="center">
				<{if $list[i].vacation > 0}>
				<{$list[i].vacation}>
				<{/if}>
			</td>
			<td align="center">
				<{if $list[i].absentWork > 0}>
				<{$list[i].absentWork}>
				<{/if}>
			</td>
			<td align="center">
				<{if $list[i].overTime > 0}>
				<{$list[i].overTime}>
				<{/if}>
			</td>
			<td align="center">
				<{if $list[i].missReport > 0}>
				<{$list[i].missReport}>
				<{/if}>
			</td>
			<td align="center">
				<{if $list[i].reminding > 0}>
				<{$list[i].reminding}>
				<{/if}>
			</td>
			<td align="center">
				<{if $list[i].warning > 0}>
				<{$list[i].warning}>
				<{/if}>
			</td>
			<td align="center">
				<{if $list[i].rejectWork > 0}>
				<{$list[i].rejectWork}>
				<{/if}>
			</td>
			<td align="center">
				<{if $list[i].noCard > 0}>
				<{$list[i].noCard}>
				<{/if}>
			</td>
			<td align="center">
				<{if $list[i].noRegister > 0}>
				<{$list[i].noRegister}>
				<{/if}>
			</td>
			<td align="center">
				<{if $list[i].evection > 0}>
				<{$list[i].evection}>
				<{/if}>
			</td>
			<td align="center">
				<{if $list[i].saveRes > 0}>
				<{$list[i].saveRes}>
				<{/if}>
			</td>
			<td align="center">
				<{if $list[i].contribute > 0}>
				<{$list[i].contribute}>
				<{/if}>
			</td>
			<td align="center"><{$list[i].scoreSum}></td>
			<td align="center">
				<{if $list[i].level == 4}>
					优秀
				<{elseif $list[i].level == 3}>
					良好
				<{elseif $list[i].level == 2}>
					达标
				<{elseif $list[i].level == 1}>
					不达标
				<{else}>
					差
				<{/if}>
			</td>
		</tr>
		<{/section}>
	</table>

	<table width="100%" border="1" cellspacing="0" bordercolor="#cfcfcd" cellpadding="0" class="tableList tip_bug">
	<form method="post" id="queryId" onsubmit="return OnCheck()" action="?q=kpiManage/">
		<tr>
		  <td align="center"> 
			<input type="text" width="4" id="yearId" name="year" value="<{$year}>" />
			<input type="text" width="2" id="monthId" name="month" value="<{$month}>" />
			<input type="submit" value="指定查询" class="sub_btn" onclick="javascript:OnCurrQuery()"/>
		  </td>
		  <td align="center">
			<input type="submit" value="查询上月" class="sub_btn" onclick="javascript:OnPrevQuery()"/>
			<input type="submit" value="查询下月" class="sub_btn" onclick="javascript:OnNextQuery()"/>
		  </td>
		  <td align="center">
			<input type="button" value="导出记录" class="sub_btn" onclick="javascript:OnExport()"/>
		  </td>
		</tr>
	</form>
	</table>
	
	<div style="font-size:16px; background:#C0C0C0">
		扣分及加分说明：
		<br>&nbsp;&nbsp;&nbsp;&nbsp;1. 迟到1次扣2分(含5分钟内)
		<br>&nbsp;&nbsp;&nbsp;&nbsp;2. 早退1次扣2分
		<br>&nbsp;&nbsp;&nbsp;&nbsp;3. 请假1天扣1分
		<br>&nbsp;&nbsp;&nbsp;&nbsp;4. 无故请假1天扣2分(未说明理由/理由不充分)
		<br>&nbsp;&nbsp;&nbsp;&nbsp;5. 补休1天扣0.5分
		<br>&nbsp;&nbsp;&nbsp;&nbsp;6. 旷工1天扣10分
		<br>&nbsp;&nbsp;&nbsp;&nbsp;7. 加班1天加2分
		<br>&nbsp;&nbsp;&nbsp;&nbsp;8. 缺交工作报告1次扣4分(如果缺交工作报告已发提醒信，则该项不重复扣分)
		<br>&nbsp;&nbsp;&nbsp;&nbsp;9. 提醒1次扣4分
		<br>&nbsp;&nbsp;&nbsp;&nbsp;10. 警告1次扣20分
		<br>&nbsp;&nbsp;&nbsp;&nbsp;11. 拒绝安排或消极对待劳动1次扣2分
		<br>&nbsp;&nbsp;&nbsp;&nbsp;12. 未打卡1次扣1分(若同时迟到或早退，则二项并记)
		<br>&nbsp;&nbsp;&nbsp;&nbsp;13. 违反出入登记1次扣2分(指上班时间离开公司未与主管及行政人员登记，若同时迟到或早退，则二项并记)
		<br>&nbsp;&nbsp;&nbsp;&nbsp;14. 出差1天加2分(按实际出差天数，出差后的补休不能计入出差天数，封顶10分)
		<br>&nbsp;&nbsp;&nbsp;&nbsp;15. 节省资源1次加20分(主动提出或实施节省公司资源的办法)
		<br>&nbsp;&nbsp;&nbsp;&nbsp;16. 特殊贡献1次加20分
	</div>

	<script type="text/javascript">
		<!--
		function OnCheck() {
			var year = $('yearId').value;
			if( year < 2011 || year > 10000 ) {
				window.alert("非法的年份!");
				return false;
			}

			var month = $('monthId').value;
			if( month < 1 || month > 12 ) {
				window.alert("非法的月份!");
				return false;
			}

			return true;
		}
		
		// 指定查询
		function OnCurrQuery() {
			$('queryId').action += "officeKpiStat";
		}
		
		// 查询上月
		function OnPrevQuery() {
			$('queryId').action += "officeKpiStat";
			var year = $('yearId').value;
			var month = $('monthId').value;
			if( month == 1 ) {
				$('yearId').value = parseInt(year, 10) - 1;
				$('monthId').value = 12;
			} else {
				$('monthId').value = parseInt(month, 10) - 1;
			}
		}
		
		// 查询下月
		function OnNextQuery() {
			$('queryId').action += "officeKpiStat";
			var year = $('yearId').value;
			var month = $('monthId').value;
			if( month == 12 ) {
				$('yearId').value = parseInt(year, 10) + 1;
				$('monthId').value = 1;
			} else {
				$('monthId').value = parseInt(month, 10) + 1;
			}
		}
		//-->
	</script>
</BODY>
</HTML>